package com.htc.controller;

import com.htc.common.ActionEvent;
import com.htc.constants.Constants;
import com.htc.dlc.KidsActivity;
import com.htc.dlc.fragment.FragmentAboutClup;
import com.htc.dlc.fragment.FragmentAboutGrace;
import com.htc.model.utils.AboutModel;
import com.htc.model.utils.KidsModel;

public class KidsController {
	public static KidsController instance;
	public static KidsController getInstance(){
		if(instance == null)
			instance = new KidsController();
		return instance;
	}
	
	public void handleViewEvent(ActionEvent e) {
		switch (e.action) {
		case Constants.GET_ALL_KIDS:
			KidsModel.getInstance().handleControllerEvent(e);
			break;
		default:
			break;
		}
	}
	
	public void handleModelViewEvent(ActionEvent e) {
		switch (e.action) {
		case Constants.GET_ALL_KIDS:
			KidsActivity kids = (KidsActivity)e.sender;
			kids.handleControllerViewEvent(e);
		
		break;
		
		default:
			break;
		}
	}
}
